77 WDT_A_hold(WDT_A_BASE);
86 ADC12_A_init(ADC12_A_BASE,
87 ADC12_A_SAMPLEHOLDSOURCE_SC,
88 ADC12_A_CLOCKSOURCE_ADC12OSC,
89 ADC12_A_CLOCKDIVIDER_1);
91 ADC12_A_enable(ADC12_A_BASE);
93 ADC12_A_enable(ADC12_A_BASE);
106 ADC12_A_setupSamplingTimer(ADC12_A_BASE,
107 ADC12_A_CYCLEHOLD_768_CYCLES,
108 ADC12_A_CYCLEHOLD_4_CYCLES,
109 ADC12_A_MULTIPLESAMPLESDISABLE);
120 ADC12_A_configureMemoryParam
param = {0};
121 param.memoryBufferControlIndex = ADC12_A_MEMORY_0;
122 param.inputSourceSelect = ADC12_A_INPUT_TEMPSENSOR;
123 param.positiveRefVoltageSourceSelect = ADC12_A_VREFPOS_INT;
124 param.negativeRefVoltageSourceSelect = ADC12_A_VREFNEG_AVSS;
125 param.endOfSequence = ADC12_A_NOTENDOFSEQUENCE;
126 ADC12_A_configureMemory(ADC12_A_BASE ,&
param);
129 ADC12_A_clearInterrupt(ADC12_A_BASE,
131 ADC12_A_enableInterrupt(ADC12_A_BASE,
136 while ( REF_ACTIVE == Ref_isRefGenBusy(REF_BASE) ) ;
138 Ref_setReferenceVoltage(REF_BASE,
141 Ref_enableReferenceVoltage(REF_BASE);
154 ADC12_A_startConversion(ADC12_A_BASE,
156 ADC12_A_SEQOFCHANNELS);
159 __bis_SR_register(LPM4_bits + GIE);
177 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
178 #pragma vector=ADC12_VECTOR
180 #elif defined(__GNUC__)
181 __attribute__((interrupt(ADC12_VECTOR)))
185 switch (__even_in_range(ADC12IV,34)){
191 temp = ADC12_A_getResults(ADC12_A_BASE,
MPU_initThreeSegmentsParam param
__bic_SR_register_on_exit(LPM3_bits|GIE)